package com.lanou3g.code0408.permission;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/8;
 * Otherwise, I don't know who created it either
 */

public class Main {
    public static void main(String[] args) {
        Person p = new Person();
        p.name = "张三";
        p.age = 19;
        //p.gender = "男"; //不能使用gender

        p.changeGender();

        Person p2 = new Person();
        p2.changeGender();

        Woman w1 = new Woman();
        w1.name = "斯嘉丽约翰逊";
        for (int i = 0; i < 34; i++) {
            w1.birthday();
        }
        w1.doSth = "拍电影";

        Woman w2 = new Woman();
        w2.name = "迪丽热巴";
        for (int i = 0; i < 25; i++) {
            w2.birthday();
        }
        w2.doSth = "烤串";



        w1.showSelf();
        w2.showSelf();



    }
}
